package com.dc.gameserver.serverCore.model.dbsql.modelVo;

import java.io.Serializable;

public class TRoleArea implements Serializable {
    private Integer id;

    private Integer roleareaid;

    private Byte roleareastatus;

    private Integer ownerid;

    private Byte allstartsreword;

    private static final long serialVersionUID = 1L;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getRoleareaid() {
        return roleareaid;
    }

    public void setRoleareaid(Integer roleareaid) {
        this.roleareaid = roleareaid;
    }

    public Byte getRoleareastatus() {
        return roleareastatus;
    }

    public void setRoleareastatus(Byte roleareastatus) {
        this.roleareastatus = roleareastatus;
    }

    public Integer getOwnerid() {
        return ownerid;
    }

    public void setOwnerid(Integer ownerid) {
        this.ownerid = ownerid;
    }

    public Byte getAllstartsreword() {
        return allstartsreword;
    }

    public void setAllstartsreword(Byte allstartsreword) {
        this.allstartsreword = allstartsreword;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        TRoleArea other = (TRoleArea) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getRoleareaid() == null ? other.getRoleareaid() == null : this.getRoleareaid().equals(other.getRoleareaid()))
            && (this.getRoleareastatus() == null ? other.getRoleareastatus() == null : this.getRoleareastatus().equals(other.getRoleareastatus()))
            && (this.getOwnerid() == null ? other.getOwnerid() == null : this.getOwnerid().equals(other.getOwnerid()))
            && (this.getAllstartsreword() == null ? other.getAllstartsreword() == null : this.getAllstartsreword().equals(other.getAllstartsreword()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getRoleareaid() == null) ? 0 : getRoleareaid().hashCode());
        result = prime * result + ((getRoleareastatus() == null) ? 0 : getRoleareastatus().hashCode());
        result = prime * result + ((getOwnerid() == null) ? 0 : getOwnerid().hashCode());
        result = prime * result + ((getAllstartsreword() == null) ? 0 : getAllstartsreword().hashCode());
        return result;
    }
}